<?php
/**
 * 网站首页
 */
class Welcome extends CI_Controller
{
	public function index()
	{
	    //网站信息
        $site = parent::getSiteValue();
        
        $this->load->model('thread');
        
        $data['cid_1'] = $this->thread->getThreadList(array('cid'=>1),0,8);
        $data['cid_2'] = $this->thread->getThreadList(array('cid'=>2),0,8);
        $data['cid_3'] = $this->thread->getThreadList(array('cid'=>3),0,8);
        $data['cid_4'] = $this->thread->getThreadList(array('cid'=>4),0,8);
        $data['cid_5'] = $this->thread->getThreadList(array('cid'=>5),0,8);
        $data['cid_6'] = $this->thread->getThreadList(array('cid'=>6),0,8);
        $data['cid_7'] = $this->thread->getThreadList(array('cid'=>7),0,5);
        $data['cid_8'] = $this->thread->getHotList();
        $data['cid_9'] = $this->thread->getThreadList(array('cid'=>9),0,5);
        $data['cid_10'] = $this->thread->getThreadList(array('cid'=>10),0,5);
        
		$this->load->view('common/header');
        $this->load->view('welcome',$data);
        $this->load->view('common/footer',$site);
	}
}